
<jsp:useBean id="model"	scope="session" class="model.WebModel"/>
<jsp:useBean id="pro"	scope="page" class="model.Producto"/>
<%@page import="model.Producto"%>
<%@page session="true" errorPage="PaginaError.jsp" contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
             String consulta = (String) session.getAttribute("consulta");
            HttpSession sesion = request.getSession();
            request = (HttpServletRequest) pageContext.getRequest();
            String BASEURL = request.getContextPath();
            String CONTROLLER = BASEURL + "/controller";
             pro = (Producto) sesion.getAttribute("producto");

%><%Object id = sesion.getAttribute("ident");


            if (id == null) {

                response.sendRedirect("ClienteInicio.jsp");

            } else {%>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    
    <link href="http://cdn.jotfor.ms/jotform.cssgz?3.1.109" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>Request & Send </title>
<style type="text/css">
    .form-label{
        width:150px !important;
    }
    .form-label-left{
        width:150px !important;
    }
    .form-line{
        padding:10px;
    }
    .form-label-right{
        width:150px !important;
    }
    body, html{
        margin:0;
        padding:0;
        background:false;
    }

    .form-all{
        margin:0px auto;
        padding-top:20px;
        width:690px;
        color:#07214F !important;
        font-family:"Comic Sans MS";
        font-size:12px;
    }
</style>
    <script type="text/javascript" src="<%=BASEURL%>/SCRIPS/script.js"></script>

    <link rel="stylesheet" href="CSS/style.ie6.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="<%=BASEURL%>/CSS/style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="CSS/style.ie7.css" type="text/css" media="screen" />
</head>
<body>
    <div id="art-page-background-gradient"></div>
    <div id="art-page-background-glare">
       <div id="art-page-background-glare-image"></div>
    </div>
    <div id="art-main">
        <div class="art-Sheet">
            <div class="art-Sheet-tl"></div>
            <div class="art-Sheet-tr"></div>
            <div class="art-Sheet-bl"></div>
            <div class="art-Sheet-br"></div>
            <div class="art-Sheet-tc"></div>
            <div class="art-Sheet-bc"></div>
            <div class="art-Sheet-cl"></div>
            <div class="art-Sheet-cr"></div>
            <div class="art-Sheet-cc"></div>
            <div class="art-Sheet-body">
                <div class="art-Header">
                    <div class="art-Header-png"></div>
                    <div class="art-Header-jpeg"></div>
                    <div class="art-Logo">
                        <h1 id="name-text" class="art-Logo-name"><a href="#">Confiteria Fuentes</a></h1>
                        <div id="slogan-text" class="art-Logo-text"></div>
                    </div>
                </div>
                <jsp:include page="AdminMenu.jsp" />


                           		

                	
                </div>
        

<script src="http://cdn.jotfor.ms/jotform.jgz?3.1.109" type="text/javascript"></script>
<script type="text/javascript">
   JotForm.init();
</script>

<div class="art-contentLayout">
                

            <h2 style="margin-left: 1cm;">Registrar Producto</h2>
	<form class="jotform-form" action="http://www.jotform.com/submit.php" method="post" name="form_10973742320" id="10973742320" accept-charset="utf-8">
    <input type="hidden" name="formID" value="10973742320" />
    <div class="form-all">
        <ul class="form-section">
            <li class="form-line" id="id_2">
                <label class="form-label-left" id="label_2" for="input_2"> Código del Producto </label>
                <div id="cid_2" class="form-input">
                    <input type="text" class="form-textbox validate[Numeric]" id="input_2" name="codigo" size="20" />
                </div>
            </li>
            <li class="form-line" id="id_3">
                <label class="form-label-left" id="label_3" for="input_3"> Nombre del Producto </label>
                <div id="cid_3" class="form-input">
                    <input type="text" class="form-textbox" id="input_3" name="nombre" size="20" />
                </div>
            </li>
              <li class="form-line" id="id_6">
                <label class="form-label-left" id="label_6" for="input_6"> Descripción del Producto </label>
                <div id="cid_6" class="form-input">
                    <textarea id="input_6" class="form-textarea" name="descripcion" cols="40" rows="6"></textarea>
                </div>
            </li>
            <li class="form-line" id="id_5">
                <label class="form-label-left" id="label_5" for="input_5"> Cantidad del Producto </label>
                <div id="cid_5" class="form-input">
                    <input type="text" class="form-textbox validate[Numeric]" id="input_5" name="cantidad" size="20" />
                </div>
            </li>
            <li class="form-line" id="id_4">
                <label class="form-label-left" id="label_4" for="input_4"> Valor del Producto </label>
                <div id="cid_4" class="form-input">
                    <input type="text" class="form-textbox validate[Numeric]" id="input_4" name="valor" size="20" />
                </div>
            </li>
            
          
            <li style="display:none">
                Should be Empty:
                <input type="text" name="website" value="" />
            </li>
        </ul>
    </div>
     <li class="form-line" id="id_14">
                <div id="cid_14" class="form-input-wide">
                    <div style="margin-left:156px" class="form-buttons-wrapper">
                        <button id="input_14" type="submit" class="form-submit-button">
                            Registrar
                        </button>
                    </div>
                </div>
            </li>
    <script type="text/javascript">
        document.getElementById("si" + "mple" + "_spc").value = "10973742320-10973742320";
    </script>

    <div style="float:right; margin-top: -350px; top: 500px;right: 500px; margin-right: 50px;">
            <p>En este formulario se deben llenar los datos del producto<br>
            para registrarlo en la base de datos</p>
        </div>
</form>

					
	
            <br/>
	</div>



    </div>
     </div>
            <script type="text/javascript" language="javascript">

                                        <%

                                                        String id1 = (String) sesion.getAttribute("ident");
                                                        if (consulta.equals("false") && id1 != null) {
                                        %>


                                            alert("Producto se encuentra registrado");



                                        <% }else{
                                             if(consulta.equals("true") && id1 != null){ %>



                                          alert("Producto registrado existosamente!!");

                                        <% } } sesion.setAttribute("consulta","nn");
                                                       %>


                                    </script>

</body>
</html>
